package com.interauto.bean;

import com.interauto.bean.httpinfo.HttpRequestBean;

import java.util.ArrayList;

/**
 * 接口信息的bean
 */
public class AutoInterCaseBean {
    /**
     * 接口名称
     */
    private String interfacename;
    /**
     * 接口类型 1=http,2=rpc,3=sql,4=redis
     */
    private Integer intercasetype;
    /**
     * 请求信息
     */
    private HttpRequestBean httpRequestBean;
    /**
     * 校验类型，1=规则校验，就走autoAssInfoBeans，2=自定义脚本校验
     */
    private Integer checktype;
    /**
     * 断言列表，这个对顺序有要求的，就直接用arraylist
     */
    private ArrayList<AutoAssInfoBean> autoAssInfoBeans;

//    /**
//     * 自定义脚本的内容
//     */
//    private String checkscriptinfo;
//
//    public String getCheckscriptinfo() {
//        return checkscriptinfo;
//    }
//
//    public void setCheckscriptinfo(String checkscriptinfo) {
//        this.checkscriptinfo = checkscriptinfo;
//    }

    public String getInterfacename() {
        return interfacename;
    }

    public void setInterfacename(String interfacename) {
        this.interfacename = interfacename;
    }

    public Integer getIntercasetype() {
        return intercasetype;
    }

    public void setIntercasetype(Integer intercasetype) {
        this.intercasetype = intercasetype;
    }

    public HttpRequestBean getHttpRequestBean() {
        return httpRequestBean;
    }

    public void setHttpRequestBean(HttpRequestBean httpRequestBean) {
        this.httpRequestBean = httpRequestBean;
    }

    public Integer getChecktype() {
        return checktype;
    }

    public void setChecktype(Integer checktype) {
        this.checktype = checktype;
    }

    public ArrayList<AutoAssInfoBean> getAutoAssInfoBeans() {
        return autoAssInfoBeans;
    }

    public void setAutoAssInfoBeans(ArrayList<AutoAssInfoBean> autoAssInfoBeans) {
        this.autoAssInfoBeans = autoAssInfoBeans;
    }

    @Override
    public String toString() {
        return "AutoInterCaseBean{" +
                "interfacename='" + interfacename + '\'' +
                ", intercasetype=" + intercasetype +
                ", httpRequestBean=" + httpRequestBean +
                ", checktype=" + checktype +
                ", autoAssInfoBeans=" + autoAssInfoBeans +
                '}';
    }
}
